package chapter;

public class object_Animal {
    public static void main(String[] args) {
        Animal a = new Animal();
        Animal b = new Animal();
        a.type = "猫";
        a.name = "hh";
        b.type = "狗";
        b.name = "yy";
        a.run();
        b.run();
        System.out.println(a.species);

    }
}
class Animal {
    String type;
    String name;
    String species = "animal";
    void run() {
        System.out.println(type + " " + name + "跑开了");
    }
}